package xyz.luhui1hao.springboottest.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import xyz.luhui1hao.springboottest.domain.User;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    /**
     * 插入用户
     * @param user
     * @return
     */
    int insertUser(User user);

    /**
     * 根据名字查找用户
     * @param name
     * @return
     */
    List<User> findUserByName(String name);
}
